
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<div class="bjui-pageContent">
	<table class="table table-bordered table-hover table-striped table-top">
		<thead>
			<tr>
				<td class="pass_width_ave_5_column">客户名称:</td>
				<td class="pass_width_ave_5_column">去程出发机场:</td>
				<td class="pass_width_ave_5_column">去程到达机场:</td>
				<td class="pass_width_ave_5_column">商品类型:</td>
				<td class="pass_width_ave_5_column">航程类型:</td>
				<td class="pass_width_ave_5_column">去程开始时间:</td>
			
			</tr>
			
		</thead>
		<tbody>
			<tr>
				<td class="pass_width_ave_5_column">${userDemand.demandCustomerName}</td>
				<td class="pass_width_ave_5_column">${userDemand.goStartAirportChName}</td>
				<td class="pass_width_ave_5_column">${userDemand.goArrivedAirportChName}</td>
				<td class="pass_width_ave_5_column">${userDemand.goodsTypeName}</td>
				<td class="pass_width_ave_5_column">${userDemand.flightTypeName}</td>
				<td class="pass_width_ave_5_column"><fmt:formatDate type="both" pattern="yyyy-MM-dd HH:mm:ss" value="${userDemand.goStartTime}" /></td>
			</tr>
		</tbody>
		<thead>
			<tr>
				<td class="pass_width_ave_5_column">去程结束时间:</td>
				<td class="pass_width_ave_5_column">返程开始时间:</td>
				<td class="pass_width_ave_5_column">返程结束时间:</td>
				<td class="pass_width_ave_5_column">出行天数:</td>
				<td class="pass_width_ave_5_column">成人数量:</td>
				<td class="pass_width_ave_5_column">儿童数量:</td>
			</tr>
			
		</thead>
		<tbody>
			<tr>
				<td class="pass_width_ave_5_column"><fmt:formatDate type="both" pattern="yyyy-MM-dd HH:mm:ss" value="${userDemand.goEndTime}" /></td>
				<td class="pass_width_ave_5_column"><fmt:formatDate type="both" pattern="yyyy-MM-dd HH:mm:ss" value="${userDemand.returnStartTime}" /></td>
				<td class="pass_width_ave_5_column"><fmt:formatDate type="both" pattern="yyyy-MM-dd HH:mm:ss" value="${userDemand.returnEndTime}" /></td>
				<td class="pass_width_ave_5_column">${userDemand.tripDays}</td>
				<td class="pass_width_ave_5_column">${userDemand.adultAmount}</td>
				<td class="pass_width_ave_5_column">${userDemand.childrenAmount}</td>
			</tr>
		</tbody>
		<thead>
			<tr>
				<td class="pass_width_ave_5_column">婴儿数量:</td>
				<td class="pass_width_ave_5_column">仓位选择:</td>
				<td class="pass_width_ave_5_column">联系电话:</td>
				<td class="pass_width_ave_5_column">需求截止时间:</td>
				<td class="pass_width_ave_5_column">需求状态:</td>
				<td class="pass_width_ave_5_column">发布时间:</td>
			</tr>
			
		</thead>
		<tbody>
			<tr>
				<td class="pass_width_ave_5_column">${userDemand.babyAmount}</td>
				<td class="pass_width_ave_5_column">${userDemand.berthSelection}</td>
				<td class="pass_width_ave_5_column">${userDemand.phoneNum}</td>
				<td class="pass_width_ave_5_column"><fmt:formatDate type="both" pattern="yyyy-MM-dd HH:mm:ss" value="${userDemand.demandCloseTime}" /></td>
				<td class="pass_width_ave_5_column">${userDemand.demandStatusName}</td>
				<td class="pass_width_ave_5_column"><fmt:formatDate type="both" pattern="yyyy-MM-dd HH:mm:ss" value="${userDemand.publishTime}" /></td>
			</tr>
		</tbody>
		<thead>
			<tr>
				<td class="pass_width_ave_5_column">竞标数量:</td>
			</tr>	
		</thead>
		<tbody>
			<tr>
				<td class="pass_width_ave_5_column">${userDemand.merchantCount}</td>
			</tr>
		</tbody>
	</table>
		<div class="panel-body">
	<table class="table table-bordered table-hover table-striped table-top">
					<thead>
						<tr>
							<td class="pass_width_ave_6_column">联系人姓名</td>
							<td class="pass_width_ave_6_column">性别</td>
							<td class="pass_width_ave_6_column">证件类型</td>
							<td class="pass_width_ave_6_column">证件号码</td>
							<td class="pass_width_ave_6_column">联系人类型</td>
							<td class="pass_width_ave_6_column">手机号码</td>
						</tr>
					</thead>
					<tbody>
					<c:forEach items="${userContactsList}" var="s" varStatus="status">
						<tr>
							<td class="pass_width_ave_6_column">${s.contactName}</td>
							<td class="pass_width_ave_6_column">${s.sexName}</td>
							<td class="pass_width_ave_6_column">${s.idTypeName}</td>
							<td class="pass_width_ave_6_column">${s.idCode}</td>
							<td class="pass_width_ave_6_column">${s.contactTypeName}</td>
							<td class="pass_width_ave_6_column">${s.phoneNum}</td>
						</tr>
					</c:forEach>
					</tbody>
				</table>
				</div>
	<!-- 联系人明细 -->
	<c:forEach items="${userDemand.busMerchantBidExtList}" var="d" varStatus="status">
	<div class="panel panel-default pass_margin_top_percent_2_ponit_5">
		<div class="panel-heading">
			<h4 class="panel-title">
				<a data-toggle="collapse" data-parent="#accordion" 
				   href="#collapseOne">
					=商户信息(${d.merchantName})=
				</a>
			</h4>
		</div>
		<div id="collapseOne" class="panel-collapse collapse in" >
			<div class="panel-body">
				<table class="table table-bordered table-hover table-striped table-top">
					<thead>
						<tr>
							<td class="pass_width_ave_6_column">竞标总价格:</td>
							<td class="pass_width_ave_6_column">去程航班号:</td>
							<td class="pass_width_ave_6_column">去程起飞时间:</td>
							<td class="pass_width_ave_6_column">去程降落时间:</td>
							<td class="pass_width_ave_6_column">去程降落天数:</td>
							<td class="pass_width_ave_6_column">返程航班号:</td>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td class="pass_width_ave_6_column">${d.bidTotalPrice}</td>
							<td class="pass_width_ave_6_column">${d.goFlightNum}</td>
							<td class="pass_width_ave_6_column"><fmt:formatDate value="${d.goUpTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
							<td class="pass_width_ave_6_column"><fmt:formatDate value="${d.goDownTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
							<td class="pass_width_ave_6_column">${d.goTDays}</td>
							<td class="pass_width_ave_6_column">${d.returnFlightNum}</td>
						</tr>
					</tbody>
					<thead>
						<tr>
							<td class="pass_width_ave_6_column">返程起飞时间:</td>
							<td class="pass_width_ave_6_column">返程降落时间:</td>
							<td class="pass_width_ave_6_column">返程降落天数:</td>
							<td class="pass_width_ave_6_column">支付截止时间:</td>
							<td class="pass_width_ave_6_column">出票截止时间:</td>
							<td class="pass_width_ave_6_column">竞标状态:</td>
						</tr>
					</thead>
					<tbody>
						<tr>	
							<td class="pass_width_ave_6_column"><fmt:formatDate value="${d.returnUpTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
							<td class="pass_width_ave_6_column"><fmt:formatDate value="${d.returnDownTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
							<td class="pass_width_ave_6_column">${d.returnTDays}</td>
							<td class="pass_width_ave_6_column"><fmt:formatDate value="${d.finalPayTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
							<td class="pass_width_ave_6_column"><fmt:formatDate value="${d.finalOutTicketTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
							<td class="pass_width_ave_6_column">${d.bidStatusName}</td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="panel-body">
				<table class="table table-bordered table-hover table-striped table-top">
					<thead>
						<tr>
							<td class="pass_width_ave_6_column">姓名</td>
							<td class="pass_width_ave_6_column">商户报价</td>
						</tr>
					</thead>
					<tbody>
					<c:forEach items="${d.busUserContactsExtList}" var="s" varStatus="status">
						<tr>
							<td class="pass_width_ave_6_column">${s.contactName}</td>
							<td class="pass_width_ave_6_column">${s.quotedPrice}</td>
						</tr>
					</c:forEach>
					</tbody>
				</table>
			</div>
		</div>
	</div>
	</c:forEach>
</div>
<div class="bjui-pageFooter">
	<ul>
		<li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
		<li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
	</ul>
</div>